window.onclick = function(e){
		var x = e.pageX;
		var y = e.pageY;
		
		var arr = ["img/love5.png","img/love1.png","img/love2.png","img/love3.png","img/love4.png"];
		var img = document.createElement('img');
		
		let heartNum = Math.floor(Math.random() * arr.length);
		img.src = arr[heartNum];
		img.style.left = x-25 + "px";
		img.style.top = y-25 + "px";
		document.body.appendChild(img);
		
		var num = 0;
		var timer = setInterval(()=>{
			num++;
			x += 5 ;
			y -= 10;
			img.style.left = x + "px";
			img.style.top = y + "px";
			if(num == 7){
				img.style.opacity = "0.8";
			}
			if(num == 14){
				img.style.opacity = "0.4";
			}
			if(num >= 20){
				img.remove();
				clearInterval(timer);
			}
		},100);
	}